PWD			:= $(shell pwd)
KVERSION	:= $(shell uname -r)
KERNEL_DIR	 = /usr/lib/modules/$(KVERSION)/build

MODULE_NAME	 = my_char_driver
obj-m		:= $(MODULE_NAME).o

.PHONY: all clean test
all:
	make -C $(KERNEL_DIR) M=$(PWD) modules
clean:
	make -C $(KERNEL_DIR) M=$(PWD) clean
test:
